//
// Created by Castle-Moriarty on 2025/10/31.
//

#include <iostream>
using namespace std;

double sum(double scores[5],size_t count) {
    double sum{};
    for (size_t i{};i < count;++i) {
        sum += scores[i];
    }
    return sum;
}

int main() {
    double student_scores []{10.0,23.0,3.0,3.5,4.5,1.0,2.0};
    double sumResult = sum(student_scores,size(student_scores));
    cout << student_scores << endl;
    return 0;
}